<%@ taglib prefix="c" uri="/struts-tags" %>

<%--
  Created by IntelliJ IDEA.
  User: Lycss
  Date: 2023/7/18
  Time: 12:33
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
<div>
    <p>名字</p>
    <p>${requestScope.um}</p>

</div>
<div>
    <p>名字</p>
    <p>${requestScope.pw}</p>
</div>
<div>
    <p>名字Session</p>
    <%
        HttpSession session1 = request.getSession();
        String um = (String) session1.getAttribute("um");
    %>
    <p>${um}</p>
</div>
//循环
<c:iterator value="listfor" var="f">
    <tr>
        <p> ${requestScope.aa}</p>
        <td>list的内容：</td>
        <c:property value="f"></c:property>
    </tr>
</c:iterator>

//判断

<c:if test="username==123">123</c:if>
<c:else> 456</c:else>
    </body>
    </html>
